﻿
namespace Transport.Core.Models.Parcels
{
    public class ParceldeliveryReportModel
    {
        public string TrackingNumbers { get; set; }
        public string AddressTo { get; set; }
        public int? CustomerId { get; set; }
        private string _customerName;
        public string CustomerName
        {
            get
            {
                return !CustomerId.HasValue ? "Khách lẻ" : _customerName;
            }
            set
            {
                _customerName = value;
            }
        }
        public int Weight { get; set; }
        public string DeliverToName { get; set; }
        public string Note { get; set; }
        public int PaymentType { get; set; }
        public decimal TotalCost { get; set; }
        public string PaymentTypeName
        {
            get
            {
                return PaymentTypes.GetPaymentType(PaymentType);
            }
        }
    }
}
